package com.bl.student.service.biz.goods;

import com.bl.student.dao.model.GoodsEntity;
import com.bl.student.service.vo.DelBody;
import com.bl.student.service.vo.DelListBody;
import com.bl.student.service.vo.goods.GoodsAddVo;
import com.bl.student.service.vo.goods.GoodsListVo;
import com.bl.student.service.vo.goods.GoodsModVo;
import com.bl.student.service.vo.purchase.PurchaseVo;
import org.springframework.data.domain.Pageable;

/**
 * Created by liangweikang on 18/1/29.
 */
public interface GoodsService {

//    GoodsListVo getGoodsList(Pageable pageable);

    // manager and api、获取商品列表
    GoodsListVo getAllGoodsList(Pageable pageable);

    //manager and api、获取商品详情
    GoodsEntity getGoodDetail(String id);

    void buyGoods(String uid , String type, PurchaseVo id);

    void buyGoodsPartyA(String uid, String type, PurchaseVo purchaseVo);

    // manager 删除单个商品
    void del(DelBody id);
    //manager 批量删除商品
    void delList(DelListBody idList);
    //manager 修改商品
    void modify(GoodsModVo goodsModVo);
    // manager 增加商品
    void add(GoodsAddVo goodsAddVo);
}
